All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sun.server.util.CacheReplacerImpl

java.lang.Object
   |
   +----sun.server.util.CacheReplacerImpl

public class CacheReplacerImpl
extends Object
implements CacheReplacer

Constructor Index

 o CacheReplacerImpl()

Method Index

 o chooseReplacements(DiskCache, int)
This method chooses the list of cache entrie that should be replaced using a policy that is implementation specific.

Constructors

 o CacheReplacerImpl
 public CacheReplacerImpl()

Methods

 o chooseReplacements
 public Enumeration chooseReplacements(DiskCache diskCache,
                                       int numBytesToFree)
This method chooses the list of cache entrie that should be replaced using a policy that is implementation specific.

Parameters:
diskCache - the disk cache that has to have space freed.
numBytesToFree - the number of bytes that must be freed in the disk cache passed.
Returns:
the list of DiskCacheEntry objects that must be replaced in the disk cache. When all the entries in the returned list is freed, atleast the requested number of bytes is guaranteed to be available.

All Packages  Class Hierarchy  This Package  Previous  Next  Index